{% extends "datagrid/listview.html" %}
{% load djblets_utils i18n reviewtags %}

{% block datagrid_title %}
{%  if datagrid.group %}{% star datagrid.group %}{% endif %}

{%  if not datagrid.tabs %}
{{block.super}}
{%  else %}
<ul class="datagrid-title-tabs">
{%   for title, url in datagrid.tabs %}
 <li class="datagrid-tab {% if title == datagrid.title %}active{% endif %}">
  <h1 class="datagrid-title">
   <a href="{{url}}">{{title}}</a>
  </h1>
 </li>
{%   endfor %}
{%  endif %}
</ul>

<ul class="datagrid-top-filters">
 <li class="datagrid-showarchived">
{%  if datagrid.show_archived %}
  <a href="{% querystring_with 'show-archived' '0' %}">{% trans "Hide archived" %}</a>
{%  else %}
  <a href="{% querystring_with 'show-archived' '1' %}">{% trans "Show archived" %}</a>
{%  endif %}
 </li>
</ul>
{% endblock %}
